import './App.css';
import router from './router';
import { RouterProvider } from 'react-router-dom'
import Websocket from './utils/websocket/socketUtils'
import { useSelector, useDispatch } from 'react-redux';

function App () {
  const count = useSelector(state => state.chat.login);
 
  return (
    <div className='app'>
    
      <RouterProvider router={router} />
      {count&&<Websocket /> }
    </div >
  );
}

export default App;
